package com.human.server.model;

/**
 * @author zooy
 * @since 2025/8/26-14:44
 */
public enum MessageType {

    SUCCESS(200, "success"),
    FAIL(500, "fail"),

    // 账户密码错误
    ACCOUNT_PASSWORD_ERROR(1001, "账户密码错误"),
    // 账户不存在
    ACCOUNT_NOT_EXIST(1002, "账户不存在"),
    // 账户已被禁用
    ACCOUNT_DISABLED(1003, "账户已被禁用"),

    NOT_LOGIN(1004, "未登录");

    private final int code;
    private final String msg;
    MessageType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
